package com.mipo.service;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.mipo.dao.imp.EmployeeDAO;
import com.mipo.dao.imp.EmployeeDAOImp;
import com.mipo.vo.Employee;

public class ReplyMessageService extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String sendId = request.getParameter("sendId");
		EmployeeDAO dao = new EmployeeDAOImp();
		try {
			Employee emp = dao.query(Integer.valueOf(sendId));

			request.setAttribute("replyEmp", emp);
			request.getRequestDispatcher("mess/replyMessage.jsp").forward(
					request, response);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
